<% provide(:title, "登录") %>
<div class="login-body">
  <div class="container">
    <div class="form-signin">
      <h2 class="form-signin-heading">机械材料教学网</h2>
      <%= form_for(:session, url: login_path) do |f| %>
          <div class="login-wrap">
            <%= f.email_field :email, class: 'form-control', placeholder: 'Email' %>
            <%= f.password_field :password, class: 'form-control', placeholder: 'Password' %>
            <label class="checkbox">
              <%= f.label :remember_me, class: "checkbox inline" do %>
                  <%= f.check_box :remember_me %>
                  <span>记住这台电脑</span>
              <% end %>
            </label>
            <%= f.submit "登录", class: "btn btn-lg btn-login btn-block " %>
      <% end %>
      <p>或者您可以在线注册新用户</p>
      <%= link_to "立即注册!", signup_path %>
      <%= link_to "忘记密码?", new_password_reset_path, class: "pull-right" %>
      </div>
    </div>
  </div>
</div>